import axios from "@/utils/httptool"


export const getList = () => axios.get('/api/address')

export const addList = (body) => axios.post('/api/address',body)


export const getListData = (id) => axios.get('/api/address'+'/'+id)


export const updateListData = (id,body) => axios.put('/api/address'+'/'+id,body)

export const remoteListtData = (id) => axios.delete('/api/address'+'/'+id)

export const updateFaceImage = (oform) => axios.post('/api/updateFaceImage',oform)  // FormData

export const registry = (data) => axios.post('/api/registry',data);

export const login = (data) => axios.post('/api/login',data);


export const getUserInfo = () => axios.get('/api/user');



